<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<div id="main-content">
	<div class="col-lg-12">
		<p class="legend">发送站内消息</p>
		<form id="sendmessage-form" class="form-horizontal">
			<div class="form-group">
			<br>
			<input type="hidden" id="messageTo.id" name="messageTo.id" class="form-control required" value="${user.id }"/>
			<span>发给 <c:if test="${user.roles=='user'}">普通</c:if> 
					<c:if test="${user.roles=='institution'}">个人服务商</c:if> 
					<%-- <c:if test="${user.roles=='charitarian'}">投资人</c:if> --%>
					<c:if test="${user.roles=='admin'}">管理员</c:if>用户 ：${user.name }</span>
			</div>
			<br>
			<div class="form-group">
				<label for="content" class="">消息内容：</label>
				<textarea id="content" rows="9" cols="40" name="content" class="form-control required" style="width: 600px;height: 150px;"></textarea>
			</div>
			<div class="form-group">
				<div class=" ">
					<button type="button" class="btn btn-primary add-submit">发送</button>
				</div>
			</div>
		</form>
	</div>
</div>

<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/admin/send-message-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/admin/send-message-page");
	</script>
</c:if>